package com.zyr.feign.fallback;

import com.zyr.domain.Order;
import com.zyr.feign.OrderFeignClient;
import com.zyr.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 张雨润
 * @date 2024/7/28 下午8:13
 * @Description
 */
@Slf4j
@Component
public class OrderFeignClientFallback implements OrderFeignClient {
    @Override
    public List<Order> getListByUserId(long userId) {
        log.error("远程调用order.getListAndOrder接口失败");
        return null;
    }

    @Override
    public boolean add(Order order) {
        log.error("远程调用order.add接口失败");
        return false;
    }
}
